package org.asociacion.backend.bo;

import org.asociacion.backend.persistence.entities.TblIndexImage;

public class IndexImageBo {

	private Integer id;
	private String name;
	private byte[] image;
	private EnumImageType type;
	private String folder;
	
	public IndexImageBo() {
		
	}
	
	public IndexImageBo(TblIndexImage image) {
		id = image.getId();
		name = image.getName();
		this.image = image.getImage();
		type = image.getType();
		folder = image.getTblIndexImageProperties().getFolder();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	public EnumImageType getType() {
		return type;
	}

	public void setType(EnumImageType type) {
		this.type = type;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}

}
